{% extends "base_generic.html" %}

{% block content %}
<h1>Borrowed Books</h1>

{% if borrowed_books %}
    <ul>
        {% for book in borrowed_books %}
            <li>
                {{ book.title }} ({{ book.author }}) - Due: {{ book.due_back }}
            </li>
        {% endfor %}
    </ul>
{% else %}
    <p>There are no books borrowed.</p>
{% endif %}

{% endblock %}